<?
// pr($params);
?>

<style>
.mailform_container {
	width:100%;
	background:#FBF6AF;
	border:1px solid #D5C856;
}

.mailform_header, 
.mailform_info  {
	font:bold 100% Arial;
	
	padding:5px 0 7px ; text-align:center;
	background:#FAE47B;
	color:#B71;
}
.mailform_info {
	font:normal 12px Arial;
	color:black;
}
.mailform_error {}	
.mailform_ок {}
.mailform_container FORM {margin:0 5px;}
.mailform_body {}
.mailform_body TD {padding:8px 10px;}
.mailform_row TD {
	border-top:1px solid #ED8;
}
._mailform_row1 TD {
	background: #FAEF91;
}
.mailform_label {
	font-weight:bold;
	vertical-align:top;
	color:#333;
}
.mailform_field {
	WIDTH: 70%; 
	text-align:left;
}
B.mailform_requared { color:red; font:bold 16px Arial; }

.mailform_field INPUT,
.mailform_field TEXTAREA
{
	BORDER: 1px solid #ccc; 
	BACKGROUND: #fff;
	COLOR: #191970;
	FONT: 14px Arial; text-align:left;
	WIDTH: 98%; HEIGHT: 20px; 
	margin-right: 1px;
}
.mailform_field TEXTAREA {
	HEIGHT: 150px; 
} 

.mailform_submits INPUT {}

.mailform_error { 
	border:1px solid #fbb;
	background: #FFE2E2 ;
	color:red;
	margin:5px 0; padding:5px;
	text-align:center;
 }
 
</style>


<?=Mailform::start()?>
<?if($error){?><div class=mailform_error><?=$error?><script>alert("<?=$params['error_alert']?>")</script></div><?}?>


<DIV class=mailform_container >
<?if($header){?><div class=mailform_header><?=$header?></div><?}?>




<TABLE class=mailform_body width=100% cellspacing=0 >
<TBODY>

	<?= Mailform::fields(
			"
			<TR class='mailform_row' >
			<TD class=mailform_label >%label%
			<TD class=mailform_field >%field%
			"
		);
	?>



<TR class=mailform_row>
<TD class=mailform_label>&nbsp;
<TD class=mailform_submits >
	
	<?=Mailform::submits()?>

</TD>

</TR></TBODY></TABLE>
	
	
	<?if($params['required_exists']){?>
		
		<div class=mailform_info><b class=mailform_requared >*</b> Звездочкой  помечены поля, обязательные для заполнения.</div>
	<?}?>
	

</DIV>
<?=Mailform::end()?>
